gtk_border_free
gtk_border_get_type G_GNUC_CONST
gtk_border_new G_GNUC_MALLOC
+gtk_border_style_get_type G_GNUC_CONST
gtk_box_get_homogeneous
gtk_box_get_spacing
gtk_box_get_type G_GNUC_CONST
gtk_container_get_focus_child
gtk_container_get_focus_hadjustment
gtk_container_get_focus_vadjustment
+gtk_container_get_path_for_child
gtk_container_get_resize_mode
gtk_container_get_type G_GNUC_CONST
gtk_container_propagate_draw
gtk_container_set_resize_mode
gtk_container_unset_focus_chain
gtk_corner_type_get_type G_GNUC_CONST
+gtk_css_provider_error_get_type
+gtk_css_provider_error_quark
+gtk_css_provider_get_default
+gtk_css_provider_get_named
+gtk_css_provider_get_type
+gtk_css_provider_load_from_data
+gtk_css_provider_load_from_file
+gtk_css_provider_load_from_path
+gtk_css_provider_new
gtk_custom_paper_unix_dialog_get_type G_GNUC_CONST
gtk_debug_flag_get_type G_GNUC_CONST
gtk_decorated_window_calculate_frame_size
gtk_dest_defaults_get_type G_GNUC_CONST
gtk_device_grab_add
gtk_device_grab_remove
+gtk_gradient_add_color_stop
+gtk_gradient_get_type
+gtk_gradient_new_linear
+gtk_gradient_new_radial
+gtk_gradient_ref
+gtk_gradient_resolve
+gtk_gradient_unref
gtk_dialog_add_action_widget
gtk_dialog_add_button
gtk_dialog_add_buttons G_GNUC_NULL_TERMINATED
gtk_icon_info_get_type G_GNUC_CONST
gtk_icon_info_load_icon
gtk_icon_info_load_symbolic
+gtk_icon_info_load_symbolic_for_context
gtk_icon_info_load_symbolic_for_style
gtk_icon_info_new_for_pixbuf
gtk_icon_info_set_raw_coordinates
gtk_invisible_new
gtk_invisible_new_for_screen
gtk_invisible_set_screen
+gtk_junction_sides_get_type G_GNUC_CONST
gtk_justification_get_type G_GNUC_CONST
gtk_key_snooper_install
gtk_key_snooper_remove
gtk_misc_get_type G_GNUC_CONST
gtk_misc_set_alignment
gtk_misc_set_padding
+gtk_modifier_style_get_type
+gtk_modifier_style_map_color
+gtk_modifier_style_new
+gtk_modifier_style_set_background_color
+gtk_modifier_style_set_color
+gtk_modifier_style_set_color_property
+gtk_modifier_style_set_font
gtk_mount_operation_get_parent
gtk_mount_operation_get_screen
gtk_mount_operation_get_type G_GNUC_CONST
gtk_recent_manager_purge_items
gtk_recent_manager_remove_item
gtk_recent_sort_type_get_type G_GNUC_CONST
+gtk_region_flags_get_type G_GNUC_CONST
gtk_relief_style_get_type G_GNUC_CONST
+gtk_render_activity
+gtk_render_arrow
+gtk_render_background
+gtk_render_check
+gtk_render_expander
+gtk_render_extension
+gtk_render_focus
+gtk_render_frame
+gtk_render_frame_gap
+gtk_render_handle
+gtk_render_icon_pixbuf
+gtk_render_layout
+gtk_render_line
+gtk_render_option
+gtk_render_slider
gtk_requisition_copy
gtk_requisition_free
gtk_requisition_get_type G_GNUC_CONST
gtk_spinner_start
gtk_spinner_stop
gtk_spin_type_get_type G_GNUC_CONST
+gtk_state_flags_get_type G_GNUC_CONST
gtk_state_type_get_type G_GNUC_CONST
gtk_statusbar_get_context_id
gtk_statusbar_get_message_area
gtk_switch_set_active
gtk_style_apply_default_background
gtk_style_attach
+gtk_style_context_add_class
+gtk_style_context_add_provider
+gtk_style_context_add_provider_for_screen
+gtk_style_context_add_region
+gtk_style_context_get
+gtk_style_context_get_background_color
+gtk_style_context_get_border
+gtk_style_context_get_border_color
+gtk_style_context_get_color
+gtk_style_context_get_direction
+gtk_style_context_get_junction_sides
+gtk_style_context_get_margin
+gtk_style_context_get_padding
+gtk_style_context_get_path
+gtk_style_context_get_property
+gtk_style_context_get_screen
+gtk_style_context_get_state
+gtk_style_context_get_style
+gtk_style_context_get_style_property
+gtk_style_context_get_style_valist
+gtk_style_context_get_type
+gtk_style_context_get_valist
+gtk_style_context_has_class
+gtk_style_context_has_region
+gtk_style_context_invalidate
+gtk_style_context_list_classes
+gtk_style_context_list_regions
+gtk_style_context_lookup_color
+gtk_style_context_lookup_icon_set
+gtk_style_context_new
+gtk_style_context_notify_state_change
+gtk_style_context_pop_animatable_region
+gtk_style_context_push_animatable_region
+gtk_style_context_remove_class
+gtk_style_context_remove_provider
+gtk_style_context_remove_provider_for_screen
+gtk_style_context_remove_region
+gtk_style_context_reset_widgets
+gtk_style_context_restore
+gtk_style_context_save
+gtk_style_context_set_background
+gtk_style_context_set_direction
+gtk_style_context_set_junction_sides
+gtk_style_context_set_path
+gtk_style_context_set_screen
+gtk_style_context_set_state
+gtk_style_context_state_is_running
gtk_style_copy
gtk_style_detach
gtk_style_get
gtk_style_get_style_property
gtk_style_get_type G_GNUC_CONST
gtk_style_get_valist
+gtk_style_has_context
gtk_style_lookup_color
gtk_style_lookup_icon_set
gtk_style_new
+gtk_style_properties_clear
+gtk_style_properties_get
+gtk_style_properties_get_property
+gtk_style_properties_get_style
+gtk_style_properties_get_type
+gtk_style_properties_get_valist
+gtk_style_properties_lookup_color
+gtk_style_properties_lookup_property
+gtk_style_properties_map_color
+gtk_style_properties_merge
+gtk_style_properties_new
+gtk_style_properties_register_property
+gtk_style_properties_set
+gtk_style_properties_set_property
+gtk_style_properties_set_valist
+gtk_style_properties_unset_property
+gtk_style_provider_get_icon_factory
+gtk_style_provider_get_style
+gtk_style_provider_get_style_property
+gtk_style_provider_get_type
gtk_style_render_icon
gtk_style_set_background
+gtk_symbolic_color_get_type
+gtk_symbolic_color_new_alpha
+gtk_symbolic_color_new_literal
+gtk_symbolic_color_new_mix
+gtk_symbolic_color_new_name
+gtk_symbolic_color_new_shade
+gtk_symbolic_color_ref
+gtk_symbolic_color_resolve
+gtk_symbolic_color_unref
gtk_table_attach
gtk_table_attach_defaults
gtk_table_get_col_spacing
gtk_theme_engine_create_rc_style
gtk_theme_engine_get
gtk_theme_engine_get_type G_GNUC_CONST
+gtk_theming_engine_get
+gtk_theming_engine_get_background_color
+gtk_theming_engine_get_border
+gtk_theming_engine_get_border_color
+gtk_theming_engine_get_color
+gtk_theming_engine_get_direction
+gtk_theming_engine_get_junction_sides
+gtk_theming_engine_get_margin
+gtk_theming_engine_get_padding
+gtk_theming_engine_get_path
+gtk_theming_engine_get_property
+gtk_theming_engine_get_screen
+gtk_theming_engine_get_state
+gtk_theming_engine_get_style
+gtk_theming_engine_get_style_property
+gtk_theming_engine_get_style_valist
+gtk_theming_engine_get_type
+gtk_theming_engine_get_valist
+gtk_theming_engine_has_class
+gtk_theming_engine_has_region
+gtk_theming_engine_load
+gtk_theming_engine_lookup_color
+gtk_theming_engine_register_property
+gtk_theming_engine_state_is_running
+gtk_theming_module_get_type
gtk_toggle_action_get_active
gtk_toggle_action_get_draw_as_radio
gtk_toggle_action_get_type G_GNUC_CONST
gtk_widget_get_pango_context
gtk_widget_get_parent
gtk_widget_get_parent_window
+gtk_widget_get_path
gtk_widget_get_pointer
gtk_widget_get_preferred_height
gtk_widget_get_preferred_height_for_width
gtk_widget_get_settings
gtk_widget_get_size_request
gtk_widget_get_state
+gtk_widget_get_state_flags
gtk_widget_get_style
+gtk_widget_get_style_context
gtk_widget_get_support_multidevice
gtk_widget_get_tooltip_markup
gtk_widget_get_tooltip_text
gtk_widget_new
gtk_widget_override_background_color
gtk_widget_override_color
+gtk_widget_override_cursor
gtk_widget_override_font
gtk_widget_override_symbolic_color
gtk_widget_path
+gtk_widget_path_append_type
+gtk_widget_path_copy
+gtk_widget_path_free
+gtk_widget_path_get_type G_GNUC_CONST
+gtk_widget_path_get_widget_type
+gtk_widget_path_has_parent
+gtk_widget_path_is_type
+gtk_widget_path_iter_add_class
+gtk_widget_path_iter_add_region
+gtk_widget_path_iter_clear_classes
+gtk_widget_path_iter_clear_regions
+gtk_widget_path_iter_get_name
+gtk_widget_path_iter_get_widget_type
+gtk_widget_path_iter_has_class
+gtk_widget_path_iter_has_name
+gtk_widget_path_iter_has_qclass
+gtk_widget_path_iter_has_qname
+gtk_widget_path_iter_has_qregion
+gtk_widget_path_iter_has_region
+gtk_widget_path_iter_list_classes
+gtk_widget_path_iter_list_regions
+gtk_widget_path_iter_remove_class
+gtk_widget_path_iter_remove_region
+gtk_widget_path_iter_set_name
+gtk_widget_path_iter_set_widget_type
+gtk_widget_path_length
+gtk_widget_path_new
+gtk_widget_path_prepend_type
gtk_widget_pop_composite_child
gtk_widget_push_composite_child
gtk_widget_queue_compute_expand
gtk_widget_reparent
gtk_widget_reset_rc_styles
gtk_widget_reset_shapes
+gtk_widget_reset_style
gtk_widget_send_expose
gtk_widget_send_focus_change
gtk_widget_set_accel_path
gtk_widget_set_sensitive
gtk_widget_set_size_request
gtk_widget_set_state
+gtk_widget_set_state_flags
gtk_widget_set_style
gtk_widget_set_support_multidevice
gtk_widget_set_tooltip_markup
gtk_widget_unmap
gtk_widget_unparent
gtk_widget_unrealize
+gtk_widget_unset_state_flags
#ifdef GDK_WINDOWING_WIN32
gtk_win32_embed_widget_get_type G_GNUC_CONST
#endif
gint ref_count;
};
-G_DEFINE_BOXED_TYPE (Gtk9Slice, gtk_9slice,
- gtk_9slice_ref, gtk_9slice_unref)
+G_DEFINE_BOXED_TYPE (Gtk9Slice, _gtk_9slice,
+ _gtk_9slice_ref, _gtk_9slice_unref)
Gtk9Slice *
-gtk_9slice_new (GdkPixbuf *pixbuf,
- gdouble distance_top,
- gdouble distance_bottom,
- gdouble distance_left,
- gdouble distance_right,
- GtkSliceSideModifier horizontal_modifier,
- GtkSliceSideModifier vertical_modifier)
+_gtk_9slice_new (GdkPixbuf *pixbuf,
+ gdouble distance_top,
+ gdouble distance_bottom,
+ gdouble distance_left,
+ gdouble distance_right,
+ GtkSliceSideModifier horizontal_modifier,
+ GtkSliceSideModifier vertical_modifier)
{
Gtk9Slice *slice;
cairo_surface_t *surface;
}
void
-gtk_9slice_render (Gtk9Slice *slice,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height)
+_gtk_9slice_render (Gtk9Slice *slice,
+ cairo_t *cr,
+ gdouble x,
+ gdouble y,
+ gdouble width,
+ gdouble height)
{
int img_width, img_height;
cairo_surface_t *surface;
}
Gtk9Slice *
-gtk_9slice_ref (Gtk9Slice *slice)
+_gtk_9slice_ref (Gtk9Slice *slice)
{
g_return_val_if_fail (slice != NULL, NULL);
}
void
-gtk_9slice_unref (Gtk9Slice *slice)
+_gtk_9slice_unref (Gtk9Slice *slice)
{
g_return_if_fail (slice != NULL);
/* Dummy typedefs */
typedef struct Gtk9Slice Gtk9Slice;
-#define GTK_TYPE_9SLICE (gtk_9slice_get_type ())
+#define GTK_TYPE_9SLICE (_gtk_9slice_get_type ())
typedef enum {
GTK_SLICE_REPEAT,
GTK_SLICE_STRETCH
} GtkSliceSideModifier;
-GType gtk_9slice_get_type (void) G_GNUC_CONST;
-
-Gtk9Slice * gtk_9slice_new (GdkPixbuf *pixbuf,
- gdouble distance_top,
- gdouble distance_bottom,
- gdouble distance_left,
- gdouble distance_right,
- GtkSliceSideModifier horizontal_modifier,
- GtkSliceSideModifier vertical_modifier);
-
-Gtk9Slice * gtk_9slice_ref (Gtk9Slice *slice);
-void gtk_9slice_unref (Gtk9Slice *slice);
-
-void gtk_9slice_render (Gtk9Slice *slice,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height);
+GType _gtk_9slice_get_type (void) G_GNUC_CONST;
+
+Gtk9Slice * _gtk_9slice_new (GdkPixbuf *pixbuf,
+ gdouble distance_top,
+ gdouble distance_bottom,
+ gdouble distance_left,
+ gdouble distance_right,
+ GtkSliceSideModifier horizontal_modifier,
+ GtkSliceSideModifier vertical_modifier);
+
+Gtk9Slice * _gtk_9slice_ref (Gtk9Slice *slice);
+void _gtk_9slice_unref (Gtk9Slice *slice);
+
+void _gtk_9slice_render (Gtk9Slice *slice,
+ cairo_t *cr,
+ gdouble x,
+ gdouble y,
+ gdouble width,
+ gdouble height);
G_END_DECLS
};
GtkAnimationDescription *
-gtk_animation_description_new (gdouble duration,
- GtkTimelineProgressType progress_type,
- gboolean loop)
+_gtk_animation_description_new (gdouble duration,
+ GtkTimelineProgressType progress_type,
+ gboolean loop)
{
GtkAnimationDescription *desc;
}
gdouble
-gtk_animation_description_get_duration (GtkAnimationDescription *desc)
+_gtk_animation_description_get_duration (GtkAnimationDescription *desc)
{
return desc->duration;
}
GtkTimelineProgressType
-gtk_animation_description_get_progress_type (GtkAnimationDescription *desc)
+_gtk_animation_description_get_progress_type (GtkAnimationDescription *desc)
{
return desc->progress_type;
}
gboolean
-gtk_animation_description_get_loop (GtkAnimationDescription *desc)
+_gtk_animation_description_get_loop (GtkAnimationDescription *desc)
{
return (desc->loop != 0);
}
GtkAnimationDescription *
-gtk_animation_description_ref (GtkAnimationDescription *desc)
+_gtk_animation_description_ref (GtkAnimationDescription *desc)
{
desc->ref_count++;
return desc;
}
void
-gtk_animation_description_unref (GtkAnimationDescription *desc)
+_gtk_animation_description_unref (GtkAnimationDescription *desc)
{
desc->ref_count--;
}
GtkAnimationDescription *
-gtk_animation_description_from_string (const gchar *str)
+_gtk_animation_description_from_string (const gchar *str)
{
gchar timing_function[16] = { 0, };
gchar duration_unit[3] = { 0, };
return NULL;
}
- return gtk_animation_description_new ((gdouble) duration, progress_type, loop);
+ return _gtk_animation_description_new ((gdouble) duration, progress_type, loop);
}
GType
-gtk_animation_description_get_type (void)
+_gtk_animation_description_get_type (void)
{
static GType type = 0;
if (G_UNLIKELY (!type))
type = g_boxed_type_register_static (I_("GtkAnimationDescription"),
- (GBoxedCopyFunc) gtk_animation_description_ref,
- (GBoxedFreeFunc) gtk_animation_description_unref);
+ (GBoxedCopyFunc) _gtk_animation_description_ref,
+ (GBoxedFreeFunc) _gtk_animation_description_unref);
return type;
}
/* Dummy typedefs */
typedef struct GtkAnimationDescription GtkAnimationDescription;
-#define GTK_TYPE_ANIMATION_DESCRIPTION (gtk_animation_description_get_type ())
+#define GTK_TYPE_ANIMATION_DESCRIPTION (_gtk_animation_description_get_type ())
-GType gtk_animation_description_get_type (void) G_GNUC_CONST;
+GType _gtk_animation_description_get_type (void) G_GNUC_CONST;
-GtkAnimationDescription * gtk_animation_description_new (gdouble duration,
- GtkTimelineProgressType progress_type,
- gboolean loop);
+GtkAnimationDescription * _gtk_animation_description_new (gdouble duration,
+ GtkTimelineProgressType progress_type,
+ gboolean loop);
-gdouble gtk_animation_description_get_duration (GtkAnimationDescription *desc);
-GtkTimelineProgressType gtk_animation_description_get_progress_type (GtkAnimationDescription *desc);
-gboolean gtk_animation_description_get_loop (GtkAnimationDescription *desc);
+gdouble _gtk_animation_description_get_duration (GtkAnimationDescription *desc);
+GtkTimelineProgressType _gtk_animation_description_get_progress_type (GtkAnimationDescription *desc);
+gboolean _gtk_animation_description_get_loop (GtkAnimationDescription *desc);
-GtkAnimationDescription * gtk_animation_description_ref (GtkAnimationDescription *desc);
-void gtk_animation_description_unref (GtkAnimationDescription *desc);
+GtkAnimationDescription * _gtk_animation_description_ref (GtkAnimationDescription *desc);
+void _gtk_animation_description_unref (GtkAnimationDescription *desc);
-GtkAnimationDescription * gtk_animation_description_from_string (const gchar *str);
+GtkAnimationDescription * _gtk_animation_description_from_string (const gchar *str);
G_END_DECLS
GtkAppChooserDialog *self = user_data;
GError *error = NULL;
- gtk_app_chooser_online_search_for_mimetype_finish (online, res, &error);
+ _gtk_app_chooser_online_search_for_mimetype_finish (online, res, &error);
if (error != NULL)
{
{
GtkAppChooserDialog *self = user_data;
- gtk_app_chooser_online_search_for_mimetype_async (self->priv->online,
- self->priv->content_type,
- GTK_WINDOW (self),
- search_for_mimetype_ready_cb,
- self);
+ _gtk_app_chooser_online_search_for_mimetype_async (self->priv->online,
+ self->priv->content_type,
+ GTK_WINDOW (self),
+ search_for_mimetype_ready_cb,
+ self);
}
static void
{
GtkAppChooserDialog *self = user_data;
- self->priv->online = gtk_app_chooser_online_get_default_finish (source, res);
+ self->priv->online = _gtk_app_chooser_online_get_default_finish (source, res);
if (self->priv->online != NULL)
{
static void
ensure_online_button (GtkAppChooserDialog *self)
{
- gtk_app_chooser_online_get_default_async (app_chooser_online_get_default_ready_cb, self);
+ _gtk_app_chooser_online_get_default_async (app_chooser_online_get_default_ready_cb, self);
}
/* An application is valid if:
#include <gio/gio.h>
-#define gtk_app_chooser_online_get_type _gtk_app_chooser_online_get_type
static void gtk_app_chooser_online_default_init (GtkAppChooserOnlineInterface *iface);
-G_DEFINE_INTERFACE_WITH_CODE (GtkAppChooserOnline, gtk_app_chooser_online, G_TYPE_OBJECT,
+G_DEFINE_INTERFACE_WITH_CODE (GtkAppChooserOnline, _gtk_app_chooser_online, G_TYPE_OBJECT,
g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_ASYNC_INITABLE);)
static void
-gtk_app_chooser_online_default_init (GtkAppChooserOnlineInterface *iface)
+_gtk_app_chooser_online_default_init (GtkAppChooserOnlineInterface *iface)
{
/* do nothing */
}
GtkAppChooserOnline *
-gtk_app_chooser_online_get_default_finish (GObject *source,
- GAsyncResult *result)
+_gtk_app_chooser_online_get_default_finish (GObject *source,
+ GAsyncResult *result)
{
GtkAppChooserOnline *retval;
result, NULL));
return retval;
-}
+}
void
-gtk_app_chooser_online_get_default_async (GAsyncReadyCallback callback,
- gpointer user_data)
+_gtk_app_chooser_online_get_default_async (GAsyncReadyCallback callback,
+ gpointer user_data)
{
GIOExtensionPoint *ep;
GIOExtension *extension;
}
void
-gtk_app_chooser_online_search_for_mimetype_async (GtkAppChooserOnline *self,
- const gchar *content_type,
- GtkWindow *parent,
- GAsyncReadyCallback callback,
- gpointer user_data)
+_gtk_app_chooser_online_search_for_mimetype_async (GtkAppChooserOnline *self,
+ const gchar *content_type,
+ GtkWindow *parent,
+ GAsyncReadyCallback callback,
+ gpointer user_data)
{
GtkAppChooserOnlineInterface *iface;
}
gboolean
-gtk_app_chooser_online_search_for_mimetype_finish (GtkAppChooserOnline *self,
- GAsyncResult *res,
- GError **error)
+_gtk_app_chooser_online_search_for_mimetype_finish (GtkAppChooserOnline *self,
+ GAsyncResult *res,
+ GError **error)
{
GtkAppChooserOnlineInterface *iface;
GError **error);
};
-GType _gtk_app_chooser_online_get_type (void) G_GNUC_CONST;
+GType _gtk_app_chooser_online_get_type (void) G_GNUC_CONST;
-void gtk_app_chooser_online_get_default_async (GAsyncReadyCallback callback,
- gpointer user_data);
-GtkAppChooserOnline * gtk_app_chooser_online_get_default_finish (GObject *source,
+void _gtk_app_chooser_online_get_default_async (GAsyncReadyCallback callback,
+ gpointer user_data);
+GtkAppChooserOnline * _gtk_app_chooser_online_get_default_finish (GObject *source,
GAsyncResult *result);
-void gtk_app_chooser_online_search_for_mimetype_async (GtkAppChooserOnline *self,
- const gchar *content_type,
- GtkWindow *parent,
- GAsyncReadyCallback callback,
- gpointer user_data);
-gboolean gtk_app_chooser_online_search_for_mimetype_finish (GtkAppChooserOnline *self,
- GAsyncResult *res,
- GError **error);
+void _gtk_app_chooser_online_search_for_mimetype_async (GtkAppChooserOnline *self,
+ const gchar *content_type,
+ GtkWindow *parent,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+gboolean _gtk_app_chooser_online_search_for_mimetype_finish (GtkAppChooserOnline *self,
+ GAsyncResult *res,
+ GError **error);
#endif /* __GTK_APP_CHOOSER_ONLINE_H__ */
self->priv->result = g_simple_async_result_new (G_OBJECT (self),
callback, user_data,
- gtk_app_chooser_online_search_for_mimetype_async);
+ _gtk_app_chooser_online_search_for_mimetype_async);
#ifdef GDK_WINDOWING_X11
window = gtk_widget_get_window (GTK_WIDGET (parent));
self->priv->init_result = g_simple_async_result_new (G_OBJECT (self),
callback, user_data,
- gtk_app_chooser_online_get_default_async);
+ _gtk_app_chooser_online_get_default_async);
self->priv->watch_id =
g_bus_watch_name (G_BUS_TYPE_SESSION,
typedef struct _GtkAssistantAccessible GtkAssistantAccessible;
typedef struct _GtkAssistantAccessibleClass GtkAssistantAccessibleClass;
-ATK_DEFINE_TYPE (GtkAssistantAccessible, gtk_assistant_accessible, GTK_TYPE_ASSISTANT);
+ATK_DEFINE_TYPE (GtkAssistantAccessible, _gtk_assistant_accessible, GTK_TYPE_ASSISTANT);
static gint
gtk_assistant_accessible_get_n_children (AtkObject *accessible)
}
static void
-gtk_assistant_accessible_class_init (GtkAssistantAccessibleClass *klass)
+_gtk_assistant_accessible_class_init (GtkAssistantAccessibleClass *klass)
{
AtkObjectClass *atk_class = ATK_OBJECT_CLASS (klass);
}
static void
-gtk_assistant_accessible_init (GtkAssistantAccessible *self)
+_gtk_assistant_accessible_init (GtkAssistantAccessible *self)
{
}
static GType
gtk_assistant_accessible_factory_get_accessible_type (void)
{
- return gtk_assistant_accessible_get_type ();
+ return _gtk_assistant_accessible_get_type ();
}
static AtkObject*
{
AtkObject *accessible;
- accessible = g_object_new (gtk_assistant_accessible_get_type (), NULL);
+ accessible = g_object_new (_gtk_assistant_accessible_get_type (), NULL);
atk_object_initialize (accessible, obj);
return accessible;
return NULL;
}
- slice = gtk_9slice_new (pixbuf,
- distance_top, distance_bottom,
- distance_left, distance_right,
- mods[0], mods[1]);
+ slice = _gtk_9slice_new (pixbuf,
+ distance_top, distance_bottom,
+ distance_left, distance_right,
+ mods[0], mods[1]);
g_object_unref (pixbuf);
return slice;
{
GtkAnimationDescription *desc;
- desc = gtk_animation_description_from_string (value_str);
+ desc = _gtk_animation_description_from_string (value_str);
if (desc)
g_value_take_boxed (value, desc);
typedef AtkObjectFactoryClass GtkSpinnerAccessibleFactoryClass;
G_DEFINE_TYPE (GtkSpinnerAccessibleFactory,
- gtk_spinner_accessible_factory,
+ _gtk_spinner_accessible_factory,
ATK_TYPE_OBJECT_FACTORY);
static GType
}
static void
-gtk_spinner_accessible_factory_class_init (AtkObjectFactoryClass *klass)
+_gtk_spinner_accessible_factory_class_init (AtkObjectFactoryClass *klass)
{
klass->create_accessible = gtk_spinner_accessible_factory_create_accessible;
klass->get_accessible_type = gtk_spinner_accessible_factory_get_accessible_type;
}
static void
-gtk_spinner_accessible_factory_init (AtkObjectFactory *factory)
+_gtk_spinner_accessible_factory_init (AtkObjectFactory *factory)
{
}
if (g_type_is_a (derived_atk_type, GTK_TYPE_ACCESSIBLE))
atk_registry_set_factory_type (registry,
GTK_TYPE_SPINNER,
- gtk_spinner_accessible_factory_get_type ());
+ _gtk_spinner_accessible_factory_get_type ());
first_time = FALSE;
}
LAST_SIGNAL
};
-guint signals[LAST_SIGNAL] = { 0 };
+static guint signals[LAST_SIGNAL] = { 0 };
static GQuark provider_list_quark = 0;
info = g_slice_new0 (AnimationInfo);
info->rectangles = g_array_new (FALSE, FALSE, sizeof (cairo_rectangle_int_t));
- info->timeline = gtk_timeline_new (duration);
+ info->timeline = _gtk_timeline_new (duration);
info->window = g_object_ref (window);
info->state = state;
info->target_value = target_value;
info->region_id = region_id;
- gtk_timeline_set_progress_type (info->timeline, progress_type);
- gtk_timeline_set_loop (info->timeline, loop);
+ _gtk_timeline_set_progress_type (info->timeline, progress_type);
+ _gtk_timeline_set_loop (info->timeline, loop);
if (!loop && !target_value)
{
- gtk_timeline_set_direction (info->timeline, GTK_TIMELINE_DIRECTION_BACKWARD);
- gtk_timeline_rewind (info->timeline);
+ _gtk_timeline_set_direction (info->timeline, GTK_TIMELINE_DIRECTION_BACKWARD);
+ _gtk_timeline_rewind (info->timeline);
}
g_signal_connect (info->timeline, "frame",
g_signal_connect (info->timeline, "finished",
G_CALLBACK (timeline_finished_cb), context);
- gtk_timeline_start (info->timeline);
+ _gtk_timeline_start (info->timeline);
return info;
}
}
}
-GtkWidgetPath *
+static GtkWidgetPath *
create_query_path (GtkStyleContext *context)
{
GtkStyleContextPrivate *priv;
context_has_animatable_region (context, info->region_id))
{
if (progress)
- *progress = gtk_timeline_get_progress (info->timeline);
+ *progress = _gtk_timeline_get_progress (info->timeline);
return TRUE;
}
if (!desc)
return;
- if (gtk_animation_description_get_duration (desc) == 0)
+ if (_gtk_animation_description_get_duration (desc) == 0)
{
- gtk_animation_description_unref (desc);
+ _gtk_animation_description_unref (desc);
return;
}
info->target_value != state_value)
{
/* Target values are the opposite */
- if (!gtk_timeline_get_loop (info->timeline))
+ if (!_gtk_timeline_get_loop (info->timeline))
{
/* Reverse the animation */
- if (gtk_timeline_get_direction (info->timeline) == GTK_TIMELINE_DIRECTION_FORWARD)
- gtk_timeline_set_direction (info->timeline, GTK_TIMELINE_DIRECTION_BACKWARD);
+ if (_gtk_timeline_get_direction (info->timeline) == GTK_TIMELINE_DIRECTION_FORWARD)
+ _gtk_timeline_set_direction (info->timeline, GTK_TIMELINE_DIRECTION_BACKWARD);
else
- gtk_timeline_set_direction (info->timeline, GTK_TIMELINE_DIRECTION_FORWARD);
+ _gtk_timeline_set_direction (info->timeline, GTK_TIMELINE_DIRECTION_FORWARD);
info->target_value = state_value;
}
else
{
/* Take it out of its looping state */
- gtk_timeline_set_loop (info->timeline, FALSE);
+ _gtk_timeline_set_loop (info->timeline, FALSE);
}
}
else if (!info &&
- (!gtk_animation_description_get_loop (desc) ||
+ (!_gtk_animation_description_get_loop (desc) ||
state_value))
{
info = animation_info_new (context, region_id,
- gtk_animation_description_get_duration (desc),
- gtk_animation_description_get_progress_type (desc),
- gtk_animation_description_get_loop (desc),
+ _gtk_animation_description_get_duration (desc),
+ _gtk_animation_description_get_progress_type (desc),
+ _gtk_animation_description_get_loop (desc),
state, state_value, window);
priv->animations = g_slist_prepend (priv->animations, info);
priv->animations_invalidated = TRUE;
}
- gtk_animation_description_unref (desc);
+ _gtk_animation_description_unref (desc);
}
/**
if (slice)
{
- gtk_9slice_render (slice, cr, x, y, width, height);
- gtk_9slice_unref (slice);
+ _gtk_9slice_render (slice, cr, x, y, width, height);
+ _gtk_9slice_unref (slice);
}
else if (border_style != GTK_BORDER_STYLE_NONE)
render_frame_internal (engine, cr,
guint prop_id,
GValue *value,
GParamSpec *pspec);
-static void gtk_timeline_finalize (GObject *object);
+static void _gtk_timeline_finalize (GObject *object);
-G_DEFINE_TYPE (GtkTimeline, gtk_timeline, G_TYPE_OBJECT)
+G_DEFINE_TYPE (GtkTimeline, _gtk_timeline, G_TYPE_OBJECT)
static void
-gtk_timeline_class_init (GtkTimelineClass *klass)
+_gtk_timeline_class_init (GtkTimelineClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
object_class->set_property = gtk_timeline_set_property;
object_class->get_property = gtk_timeline_get_property;
- object_class->finalize = gtk_timeline_finalize;
+ object_class->finalize = _gtk_timeline_finalize;
g_object_class_install_property (object_class,
- PROP_FPS,
- g_param_spec_uint ("fps",
- "FPS",
- "Frames per second for the timeline",
- 1, G_MAXUINT,
- DEFAULT_FPS,
- G_PARAM_READWRITE));
+ PROP_FPS,
+ g_param_spec_uint ("fps",
+ "FPS",
+ "Frames per second for the timeline",
+ 1, G_MAXUINT,
+ DEFAULT_FPS,
+ G_PARAM_READWRITE));
g_object_class_install_property (object_class,
- PROP_DURATION,
- g_param_spec_uint ("duration",
- "Animation Duration",
- "Animation Duration",
- 0, G_MAXUINT,
- 0,
- G_PARAM_READWRITE));
+ PROP_DURATION,
+ g_param_spec_uint ("duration",
+ "Animation Duration",
+ "Animation Duration",
+ 0, G_MAXUINT,
+ 0,
+ G_PARAM_READWRITE));
g_object_class_install_property (object_class,
- PROP_LOOP,
- g_param_spec_boolean ("loop",
- "Loop",
- "Whether the timeline loops or not",
- FALSE,
- G_PARAM_READWRITE));
+ PROP_LOOP,
+ g_param_spec_boolean ("loop",
+ "Loop",
+ "Whether the timeline loops or not",
+ FALSE,
+ G_PARAM_READWRITE));
g_object_class_install_property (object_class,
- PROP_SCREEN,
- g_param_spec_object ("screen",
- "Screen",
- "Screen to get the settings from",
- GDK_TYPE_SCREEN,
- G_PARAM_READWRITE));
+ PROP_SCREEN,
+ g_param_spec_object ("screen",
+ "Screen",
+ "Screen to get the settings from",
+ GDK_TYPE_SCREEN,
+ G_PARAM_READWRITE));
signals[STARTED] =
g_signal_new ("started",
- G_TYPE_FROM_CLASS (object_class),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GtkTimelineClass, started),
- NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
+ G_TYPE_FROM_CLASS (object_class),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GtkTimelineClass, started),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
signals[PAUSED] =
g_signal_new ("paused",
- G_TYPE_FROM_CLASS (object_class),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GtkTimelineClass, paused),
- NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
+ G_TYPE_FROM_CLASS (object_class),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GtkTimelineClass, paused),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
signals[FINISHED] =
g_signal_new ("finished",
- G_TYPE_FROM_CLASS (object_class),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GtkTimelineClass, finished),
- NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
+ G_TYPE_FROM_CLASS (object_class),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GtkTimelineClass, finished),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
signals[FRAME] =
g_signal_new ("frame",
- G_TYPE_FROM_CLASS (object_class),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (GtkTimelineClass, frame),
- NULL, NULL,
- g_cclosure_marshal_VOID__DOUBLE,
- G_TYPE_NONE, 1,
- G_TYPE_DOUBLE);
+ G_TYPE_FROM_CLASS (object_class),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (GtkTimelineClass, frame),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__DOUBLE,
+ G_TYPE_NONE, 1,
+ G_TYPE_DOUBLE);
g_type_class_add_private (klass, sizeof (GtkTimelinePriv));
}
static void
-gtk_timeline_init (GtkTimeline *timeline)
+_gtk_timeline_init (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
switch (prop_id)
{
case PROP_FPS:
- gtk_timeline_set_fps (timeline, g_value_get_uint (value));
+ _gtk_timeline_set_fps (timeline, g_value_get_uint (value));
break;
case PROP_DURATION:
- gtk_timeline_set_duration (timeline, g_value_get_uint (value));
+ _gtk_timeline_set_duration (timeline, g_value_get_uint (value));
break;
case PROP_LOOP:
- gtk_timeline_set_loop (timeline, g_value_get_boolean (value));
+ _gtk_timeline_set_loop (timeline, g_value_get_boolean (value));
break;
case PROP_DIRECTION:
- gtk_timeline_set_direction (timeline, g_value_get_enum (value));
+ _gtk_timeline_set_direction (timeline, g_value_get_enum (value));
break;
case PROP_SCREEN:
- gtk_timeline_set_screen (timeline,
- GDK_SCREEN (g_value_get_object (value)));
+ _gtk_timeline_set_screen (timeline,
+ GDK_SCREEN (g_value_get_object (value)));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
static void
-gtk_timeline_finalize (GObject *object)
+_gtk_timeline_finalize (GObject *object)
{
GtkTimelinePriv *priv;
GtkTimeline *timeline;
if (priv->timer)
g_timer_destroy (priv->timer);
- G_OBJECT_CLASS (gtk_timeline_parent_class)->finalize (object);
+ G_OBJECT_CLASS (_gtk_timeline_parent_class)->finalize (object);
}
-gdouble
+static gdouble
calculate_progress (gdouble linear_progress,
GtkTimelineProgressType progress_type)
{
progress = priv->last_progress;
if (priv->direction == GTK_TIMELINE_DIRECTION_BACKWARD)
- progress -= delta_progress;
+ progress -= delta_progress;
else
- progress += delta_progress;
+ progress += delta_progress;
priv->last_progress = progress;
(priv->direction == GTK_TIMELINE_DIRECTION_BACKWARD && progress == 0.0))
{
if (!priv->loop)
- {
- if (priv->source_id)
- {
- g_source_remove (priv->source_id);
- priv->source_id = 0;
- }
+ {
+ if (priv->source_id)
+ {
+ g_source_remove (priv->source_id);
+ priv->source_id = 0;
+ }
g_timer_stop (priv->timer);
- g_signal_emit (timeline, signals [FINISHED], 0);
- return FALSE;
- }
+ g_signal_emit (timeline, signals [FINISHED], 0);
+ return FALSE;
+ }
else
- gtk_timeline_rewind (timeline);
+ _gtk_timeline_rewind (timeline);
}
return TRUE;
* Return Value: the newly created #GtkTimeline
**/
GtkTimeline *
-gtk_timeline_new (guint duration)
+_gtk_timeline_new (guint duration)
{
return g_object_new (GTK_TYPE_TIMELINE,
- "duration", duration,
- NULL);
+ "duration", duration,
+ NULL);
}
GtkTimeline *
-gtk_timeline_new_for_screen (guint duration,
- GdkScreen *screen)
+_gtk_timeline_new_for_screen (guint duration,
+ GdkScreen *screen)
{
return g_object_new (GTK_TYPE_TIMELINE,
- "duration", duration,
- "screen", screen,
- NULL);
+ "duration", duration,
+ "screen", screen,
+ NULL);
}
/**
* Runs the timeline from the current frame.
**/
void
-gtk_timeline_start (GtkTimeline *timeline)
+_gtk_timeline_start (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
GtkSettings *settings;
* Pauses the timeline.
**/
void
-gtk_timeline_pause (GtkTimeline *timeline)
+_gtk_timeline_pause (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
* Rewinds the timeline.
**/
void
-gtk_timeline_rewind (GtkTimeline *timeline)
+_gtk_timeline_rewind (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
priv = timeline->priv;
- if (gtk_timeline_get_direction(timeline) != GTK_TIMELINE_DIRECTION_FORWARD)
+ if (_gtk_timeline_get_direction (timeline) != GTK_TIMELINE_DIRECTION_FORWARD)
priv->progress = priv->last_progress = 1.;
else
priv->progress = priv->last_progress = 0.;
* Return Value: %TRUE if the timeline is running
**/
gboolean
-gtk_timeline_is_running (GtkTimeline *timeline)
+_gtk_timeline_is_running (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
* Return Value: frames per second
**/
guint
-gtk_timeline_get_fps (GtkTimeline *timeline)
+_gtk_timeline_get_fps (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
* the timeline will play.
**/
void
-gtk_timeline_set_fps (GtkTimeline *timeline,
+_gtk_timeline_set_fps (GtkTimeline *timeline,
guint fps)
{
GtkTimelinePriv *priv;
priv->fps = fps;
- if (gtk_timeline_is_running (timeline))
+ if (_gtk_timeline_is_running (timeline))
{
g_source_remove (priv->source_id);
priv->source_id = gdk_threads_add_timeout (FRAME_INTERVAL (priv->fps),
- (GSourceFunc) gtk_timeline_run_frame,
- timeline);
+ (GSourceFunc) gtk_timeline_run_frame,
+ timeline);
}
g_object_notify (G_OBJECT (timeline), "fps");
* Return Value: %TRUE if the timeline loops
**/
gboolean
-gtk_timeline_get_loop (GtkTimeline *timeline)
+_gtk_timeline_get_loop (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
* when it has reached the end.
**/
void
-gtk_timeline_set_loop (GtkTimeline *timeline,
- gboolean loop)
+_gtk_timeline_set_loop (GtkTimeline *timeline,
+ gboolean loop)
{
GtkTimelinePriv *priv;
}
void
-gtk_timeline_set_duration (GtkTimeline *timeline,
- guint duration)
+_gtk_timeline_set_duration (GtkTimeline *timeline,
+ guint duration)
{
GtkTimelinePriv *priv;
}
guint
-gtk_timeline_get_duration (GtkTimeline *timeline)
+_gtk_timeline_get_duration (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
* Sets the direction of the timeline.
**/
void
-gtk_timeline_set_direction (GtkTimeline *timeline,
- GtkTimelineDirection direction)
+_gtk_timeline_set_direction (GtkTimeline *timeline,
+ GtkTimelineDirection direction)
{
GtkTimelinePriv *priv;
* Return Value: direction
**/
GtkTimelineDirection
-gtk_timeline_get_direction (GtkTimeline *timeline)
+_gtk_timeline_get_direction (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
}
void
-gtk_timeline_set_screen (GtkTimeline *timeline,
- GdkScreen *screen)
+_gtk_timeline_set_screen (GtkTimeline *timeline,
+ GdkScreen *screen)
{
GtkTimelinePriv *priv;
}
GdkScreen *
-gtk_timeline_get_screen (GtkTimeline *timeline)
+_gtk_timeline_get_screen (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
}
gdouble
-gtk_timeline_get_progress (GtkTimeline *timeline)
+_gtk_timeline_get_progress (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
}
GtkTimelineProgressType
-gtk_timeline_get_progress_type (GtkTimeline *timeline)
+_gtk_timeline_get_progress_type (GtkTimeline *timeline)
{
GtkTimelinePriv *priv;
}
void
-gtk_timeline_set_progress_type (GtkTimeline *timeline,
- GtkTimelineProgressType progress_type)
+_gtk_timeline_set_progress_type (GtkTimeline *timeline,
+ GtkTimelineProgressType progress_type)
{
GtkTimelinePriv *priv;
G_BEGIN_DECLS
-#define GTK_TYPE_TIMELINE (gtk_timeline_get_type ())
+#define GTK_TYPE_TIMELINE (_gtk_timeline_get_type ())
#define GTK_TIMELINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TIMELINE, GtkTimeline))
#define GTK_TIMELINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TIMELINE, GtkTimelineClass))
#define GTK_IS_TIMELINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TIMELINE))
};
-GType gtk_timeline_get_type (void) G_GNUC_CONST;
+GType _gtk_timeline_get_type (void) G_GNUC_CONST;
-GtkTimeline *gtk_timeline_new (guint duration);
-GtkTimeline *gtk_timeline_new_for_screen (guint duration,
- GdkScreen *screen);
+GtkTimeline * _gtk_timeline_new (guint duration);
+GtkTimeline * _gtk_timeline_new_for_screen (guint duration,
+ GdkScreen *screen);
-void gtk_timeline_start (GtkTimeline *timeline);
-void gtk_timeline_pause (GtkTimeline *timeline);
-void gtk_timeline_rewind (GtkTimeline *timeline);
+void _gtk_timeline_start (GtkTimeline *timeline);
+void _gtk_timeline_pause (GtkTimeline *timeline);
+void _gtk_timeline_rewind (GtkTimeline *timeline);
-gboolean gtk_timeline_is_running (GtkTimeline *timeline);
+gboolean _gtk_timeline_is_running (GtkTimeline *timeline);
-guint gtk_timeline_get_fps (GtkTimeline *timeline);
-void gtk_timeline_set_fps (GtkTimeline *timeline,
- guint fps);
+guint _gtk_timeline_get_fps (GtkTimeline *timeline);
+void _gtk_timeline_set_fps (GtkTimeline *timeline,
+ guint fps);
-gboolean gtk_timeline_get_loop (GtkTimeline *timeline);
-void gtk_timeline_set_loop (GtkTimeline *timeline,
- gboolean loop);
+gboolean _gtk_timeline_get_loop (GtkTimeline *timeline);
+void _gtk_timeline_set_loop (GtkTimeline *timeline,
+ gboolean loop);
-guint gtk_timeline_get_duration (GtkTimeline *timeline);
-void gtk_timeline_set_duration (GtkTimeline *timeline,
- guint duration);
+guint _gtk_timeline_get_duration (GtkTimeline *timeline);
+void _gtk_timeline_set_duration (GtkTimeline *timeline,
+ guint duration);
-GdkScreen *gtk_timeline_get_screen (GtkTimeline *timeline);
-void gtk_timeline_set_screen (GtkTimeline *timeline,
- GdkScreen *screen);
+GdkScreen * _gtk_timeline_get_screen (GtkTimeline *timeline);
+void _gtk_timeline_set_screen (GtkTimeline *timeline,
+ GdkScreen *screen);
-GtkTimelineDirection gtk_timeline_get_direction (GtkTimeline *timeline);
-void gtk_timeline_set_direction (GtkTimeline *timeline,
- GtkTimelineDirection direction);
+GtkTimelineDirection _gtk_timeline_get_direction (GtkTimeline *timeline);
+void _gtk_timeline_set_direction (GtkTimeline *timeline,
+ GtkTimelineDirection direction);
-gdouble gtk_timeline_get_progress (GtkTimeline *timeline);
+gdouble _gtk_timeline_get_progress (GtkTimeline *timeline);
-GtkTimelineProgressType gtk_timeline_get_progress_type (GtkTimeline *timeline);
-void gtk_timeline_set_progress_type (GtkTimeline *timeline,
- GtkTimelineProgressType progress_type);
+GtkTimelineProgressType _gtk_timeline_get_progress_type (GtkTimeline *timeline);
+void _gtk_timeline_set_progress_type (GtkTimeline *timeline,
+ GtkTimelineProgressType progress_type);
G_END_DECLS
if (animation_desc)
{
- if (gtk_animation_description_get_loop (animation_desc))
+ if (_gtk_animation_description_get_loop (animation_desc))
_gtk_widget_notify_state_change (widget, flag, TRUE);
- gtk_animation_description_unref (animation_desc);
+ _gtk_animation_description_unref (animation_desc);
}
flag >>= 1;